<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::GrabCut&lt; PointT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_grab_cut.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-types">Protected 类型</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_grab_cut-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::GrabCut&lt; PointT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implementation of the <a class="el" href="classpcl_1_1_grab_cut.html" title="Implementation of the GrabCut segmentation in &quot;GrabCut — Interactive Foreground Extraction using Iter...">GrabCut</a> segmentation in "GrabCut — Interactive Foreground Extraction using Iterated Graph Cuts" by Carsten Rother, Vladimir Kolmogorov and Andrew Blake.  
 <a href="classpcl_1_1_grab_cut.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="grabcut__segmentation_8h_source.html">grabcut_segmentation.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::GrabCut&lt; PointT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_grab_cut.png" usemap="#pcl::GrabCut_3C_20PointT_20_3E_map" alt=""/>
  <map id="pcl::GrabCut_3C_20PointT_20_3E_map" name="pcl::GrabCut_3C_20PointT_20_3E_map">
<area href="classpcl_1_1_p_c_l_base.html" title="PCL base class. Implements methods that are used by most PCL algorithms." alt="pcl::PCLBase&lt; PointT &gt;" shape="rect" coords="0,0,146,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcl_1_1_grab_cut_1_1_n_links.html">NLinks</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:af5069ca07106ac252a0c7629d3e3ed23"><td class="memItemLeft" align="right" valign="top"><a id="af5069ca07106ac252a0c7629d3e3ed23"></a>
typedef <a class="el" href="classpcl_1_1search_1_1_search.html">pcl::search::Search</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>KdTree</b></td></tr>
<tr class="separator:af5069ca07106ac252a0c7629d3e3ed23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a478c03c125e0081d9faf902406504c54"><td class="memItemLeft" align="right" valign="top"><a id="a478c03c125e0081d9faf902406504c54"></a>
typedef <a class="el" href="classpcl_1_1search_1_1_search.html">pcl::search::Search</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>KdTreePtr</b></td></tr>
<tr class="separator:a478c03c125e0081d9faf902406504c54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31638c307b15641985ab1758decbcada"><td class="memItemLeft" align="right" valign="top"><a id="a31638c307b15641985ab1758decbcada"></a>
typedef <a class="el" href="classpcl_1_1_p_c_l_base.html">PCLBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::PointCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudConstPtr</b></td></tr>
<tr class="separator:a31638c307b15641985ab1758decbcada"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a796d088d8c0d0856485f5d0106f2dc2a"><td class="memItemLeft" align="right" valign="top"><a id="a796d088d8c0d0856485f5d0106f2dc2a"></a>
typedef <a class="el" href="classpcl_1_1_p_c_l_base.html">PCLBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::PointCloudPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudPtr</b></td></tr>
<tr class="separator:a796d088d8c0d0856485f5d0106f2dc2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classpcl_1_1_p_c_l_base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classpcl_1_1_p_c_l_base')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classpcl_1_1_p_c_l_base.html">pcl::PCLBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:ae2f6f6863a73337858b7a7a054eaae4f inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ae2f6f6863a73337858b7a7a054eaae4f"></a>
typedef <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloud</b></td></tr>
<tr class="separator:ae2f6f6863a73337858b7a7a054eaae4f inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab84dd662cda89edb882fe5307b2136ea inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ab84dd662cda89edb882fe5307b2136ea"></a>
typedef PointCloud::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudPtr</b></td></tr>
<tr class="separator:ab84dd662cda89edb882fe5307b2136ea inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8326513fad0680b6993e2f1a79a6af4 inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ac8326513fad0680b6993e2f1a79a6af4"></a>
typedef PointCloud::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudConstPtr</b></td></tr>
<tr class="separator:ac8326513fad0680b6993e2f1a79a6af4 inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae51eae0c7b3e0b7178f4894dff90660a inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ae51eae0c7b3e0b7178f4894dff90660a"></a>
typedef boost::shared_ptr&lt; <a class="el" href="structpcl_1_1_point_indices.html">PointIndices</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointIndicesPtr</b></td></tr>
<tr class="separator:ae51eae0c7b3e0b7178f4894dff90660a inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51771056fb4ab8c448a11157acbe2ee0 inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="a51771056fb4ab8c448a11157acbe2ee0"></a>
typedef boost::shared_ptr&lt; <a class="el" href="structpcl_1_1_point_indices.html">PointIndices</a> const  &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointIndicesConstPtr</b></td></tr>
<tr class="separator:a51771056fb4ab8c448a11157acbe2ee0 inherit pub_types_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2d5e49f07d785356bc96428fb5ef7f7a"><td class="memItemLeft" align="right" valign="top"><a id="a2d5e49f07d785356bc96428fb5ef7f7a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a2d5e49f07d785356bc96428fb5ef7f7a">GrabCut</a> (uint32_t K=5, float lambda=50.f)</td></tr>
<tr class="memdesc:a2d5e49f07d785356bc96428fb5ef7f7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor <br /></td></tr>
<tr class="separator:a2d5e49f07d785356bc96428fb5ef7f7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae886145268ae9d00302237824f8f3b4b"><td class="memItemLeft" align="right" valign="top"><a id="ae886145268ae9d00302237824f8f3b4b"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#ae886145268ae9d00302237824f8f3b4b">~GrabCut</a> ()</td></tr>
<tr class="memdesc:ae886145268ae9d00302237824f8f3b4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Desctructor <br /></td></tr>
<tr class="separator:ae886145268ae9d00302237824f8f3b4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1660eb464bfd7944de8661f4f7e90ecb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a1660eb464bfd7944de8661f4f7e90ecb">setInputCloud</a> (const PointCloudConstPtr &amp;cloud)</td></tr>
<tr class="memdesc:a1660eb464bfd7944de8661f4f7e90ecb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a pointer to the input dataset  <a href="classpcl_1_1_grab_cut.html#a1660eb464bfd7944de8661f4f7e90ecb">更多...</a><br /></td></tr>
<tr class="separator:a1660eb464bfd7944de8661f4f7e90ecb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0719b8f56539082c0bb7e8957a449a78"><td class="memItemLeft" align="right" valign="top"><a id="a0719b8f56539082c0bb7e8957a449a78"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a0719b8f56539082c0bb7e8957a449a78">setBackgroundPoints</a> (const PointCloudConstPtr &amp;background_points)</td></tr>
<tr class="memdesc:a0719b8f56539082c0bb7e8957a449a78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set background points, foreground points = points \ background points <br /></td></tr>
<tr class="separator:a0719b8f56539082c0bb7e8957a449a78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1d9e818041091e3e60377b72c0f3cfe"><td class="memItemLeft" align="right" valign="top"><a id="aa1d9e818041091e3e60377b72c0f3cfe"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#aa1d9e818041091e3e60377b72c0f3cfe">setBackgroundPointsIndices</a> (int x1, int y1, int x2, int y2)</td></tr>
<tr class="memdesc:aa1d9e818041091e3e60377b72c0f3cfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set background indices, foreground indices = indices \ background indices <br /></td></tr>
<tr class="separator:aa1d9e818041091e3e60377b72c0f3cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc1937d9675b20ac08871bb84aff514b"><td class="memItemLeft" align="right" valign="top"><a id="adc1937d9675b20ac08871bb84aff514b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#adc1937d9675b20ac08871bb84aff514b">setBackgroundPointsIndices</a> (const PointIndicesConstPtr &amp;indices)</td></tr>
<tr class="memdesc:adc1937d9675b20ac08871bb84aff514b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set background indices, foreground indices = indices \ background indices <br /></td></tr>
<tr class="separator:adc1937d9675b20ac08871bb84aff514b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ab12ae233f94275e090b33bb87e7d8b"><td class="memItemLeft" align="right" valign="top"><a id="a2ab12ae233f94275e090b33bb87e7d8b"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a2ab12ae233f94275e090b33bb87e7d8b">refine</a> ()</td></tr>
<tr class="memdesc:a2ab12ae233f94275e090b33bb87e7d8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run Grabcut refinement on the hard segmentation <br /></td></tr>
<tr class="separator:a2ab12ae233f94275e090b33bb87e7d8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94cd3a0257244c06f4aa6d6d3d7bf8b5"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a94cd3a0257244c06f4aa6d6d3d7bf8b5">refineOnce</a> ()</td></tr>
<tr class="separator:a94cd3a0257244c06f4aa6d6d3d7bf8b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd10ddb9bb658aac91191b232efdd81"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#acfd10ddb9bb658aac91191b232efdd81">getLambda</a> ()</td></tr>
<tr class="separator:acfd10ddb9bb658aac91191b232efdd81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c1c53a761cbdcb78ea945399799822e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a0c1c53a761cbdcb78ea945399799822e">setLambda</a> (float lambda)</td></tr>
<tr class="separator:a0c1c53a761cbdcb78ea945399799822e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28c87a88fc86e84ef54f91072a823808"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a28c87a88fc86e84ef54f91072a823808">getK</a> ()</td></tr>
<tr class="separator:a28c87a88fc86e84ef54f91072a823808"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7aa7a82cd3e53e724a1c6841518ccf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a3d7aa7a82cd3e53e724a1c6841518ccf">setK</a> (uint32_t K)</td></tr>
<tr class="separator:a3d7aa7a82cd3e53e724a1c6841518ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28c5aed9323d69b8324c63413f354b0f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a28c5aed9323d69b8324c63413f354b0f">setSearchMethod</a> (const KdTreePtr &amp;tree)</td></tr>
<tr class="memdesc:a28c5aed9323d69b8324c63413f354b0f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a pointer to the search object.  <a href="classpcl_1_1_grab_cut.html#a28c5aed9323d69b8324c63413f354b0f">更多...</a><br /></td></tr>
<tr class="separator:a28c5aed9323d69b8324c63413f354b0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9988564d08ac28bddbf21eb28110c3f8"><td class="memItemLeft" align="right" valign="top"><a id="a9988564d08ac28bddbf21eb28110c3f8"></a>
KdTreePtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a9988564d08ac28bddbf21eb28110c3f8">getSearchMethod</a> ()</td></tr>
<tr class="memdesc:a9988564d08ac28bddbf21eb28110c3f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to the search method used. <br /></td></tr>
<tr class="separator:a9988564d08ac28bddbf21eb28110c3f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f685d2d7d97c6313e2010649705dcbc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a4f685d2d7d97c6313e2010649705dcbc">setNumberOfNeighbours</a> (int nb_neighbours)</td></tr>
<tr class="memdesc:a4f685d2d7d97c6313e2010649705dcbc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allows to set the number of neighbours to find.  <a href="classpcl_1_1_grab_cut.html#a4f685d2d7d97c6313e2010649705dcbc">更多...</a><br /></td></tr>
<tr class="separator:a4f685d2d7d97c6313e2010649705dcbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afde03d2c2fc08ac9c5f83100985a0d79"><td class="memItemLeft" align="right" valign="top"><a id="afde03d2c2fc08ac9c5f83100985a0d79"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#afde03d2c2fc08ac9c5f83100985a0d79">getNumberOfNeighbours</a> () const</td></tr>
<tr class="memdesc:afde03d2c2fc08ac9c5f83100985a0d79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of neighbours to find. <br /></td></tr>
<tr class="separator:afde03d2c2fc08ac9c5f83100985a0d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a540af5196a39ae6b10d2caa3b3856bbe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a540af5196a39ae6b10d2caa3b3856bbe">extract</a> (std::vector&lt; <a class="el" href="structpcl_1_1_point_indices.html">pcl::PointIndices</a> &gt; &amp;clusters)</td></tr>
<tr class="memdesc:a540af5196a39ae6b10d2caa3b3856bbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method launches the segmentation algorithm and returns the clusters that were obtained during the segmentation. The indices of points belonging to the object will be stored in the cluster with index 1, other indices will be stored in the cluster with index 0.  <a href="classpcl_1_1_grab_cut.html#a540af5196a39ae6b10d2caa3b3856bbe">更多...</a><br /></td></tr>
<tr class="separator:a540af5196a39ae6b10d2caa3b3856bbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_p_c_l_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_p_c_l_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_p_c_l_base.html">pcl::PCLBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:af4fbc5eb005057f8a0fc6d60bde595df inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="af4fbc5eb005057f8a0fc6d60bde595df"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#af4fbc5eb005057f8a0fc6d60bde595df">PCLBase</a> ()</td></tr>
<tr class="memdesc:af4fbc5eb005057f8a0fc6d60bde595df inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:af4fbc5eb005057f8a0fc6d60bde595df inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a6dd7a91275d7737cf1b18005b47244 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="a7a6dd7a91275d7737cf1b18005b47244"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a7a6dd7a91275d7737cf1b18005b47244">PCLBase</a> (const <a class="el" href="classpcl_1_1_p_c_l_base.html">PCLBase</a> &amp;base)</td></tr>
<tr class="memdesc:a7a6dd7a91275d7737cf1b18005b47244 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br /></td></tr>
<tr class="separator:a7a6dd7a91275d7737cf1b18005b47244 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5d6846e98e59c37dcc3dc9958d53966 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ad5d6846e98e59c37dcc3dc9958d53966"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#ad5d6846e98e59c37dcc3dc9958d53966">~PCLBase</a> ()</td></tr>
<tr class="memdesc:ad5d6846e98e59c37dcc3dc9958d53966 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:ad5d6846e98e59c37dcc3dc9958d53966 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cd745c4f7a792212f4fc3720b9d46ea inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="a8cd745c4f7a792212f4fc3720b9d46ea"></a>
PointCloudConstPtr const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a8cd745c4f7a792212f4fc3720b9d46ea">getInputCloud</a> () const</td></tr>
<tr class="memdesc:a8cd745c4f7a792212f4fc3720b9d46ea inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to the input point cloud dataset. <br /></td></tr>
<tr class="separator:a8cd745c4f7a792212f4fc3720b9d46ea inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab219359de6eb34c9d51e2e976dd1a0d1 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#ab219359de6eb34c9d51e2e976dd1a0d1">setIndices</a> (const IndicesPtr &amp;indices)</td></tr>
<tr class="memdesc:ab219359de6eb34c9d51e2e976dd1a0d1 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a pointer to the vector of indices that represents the input data.  <a href="classpcl_1_1_p_c_l_base.html#ab219359de6eb34c9d51e2e976dd1a0d1">更多...</a><br /></td></tr>
<tr class="separator:ab219359de6eb34c9d51e2e976dd1a0d1 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a436c68c74b31e4dd00000adfbb11ca7c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a436c68c74b31e4dd00000adfbb11ca7c">setIndices</a> (const IndicesConstPtr &amp;indices)</td></tr>
<tr class="memdesc:a436c68c74b31e4dd00000adfbb11ca7c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a pointer to the vector of indices that represents the input data.  <a href="classpcl_1_1_p_c_l_base.html#a436c68c74b31e4dd00000adfbb11ca7c">更多...</a><br /></td></tr>
<tr class="separator:a436c68c74b31e4dd00000adfbb11ca7c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9cc90d8364ce968566f75800d3773ca inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#af9cc90d8364ce968566f75800d3773ca">setIndices</a> (const PointIndicesConstPtr &amp;indices)</td></tr>
<tr class="memdesc:af9cc90d8364ce968566f75800d3773ca inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a pointer to the vector of indices that represents the input data.  <a href="classpcl_1_1_p_c_l_base.html#af9cc90d8364ce968566f75800d3773ca">更多...</a><br /></td></tr>
<tr class="separator:af9cc90d8364ce968566f75800d3773ca inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a930c7a6375fdf65ff8cfdb4eb4a6d996 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a930c7a6375fdf65ff8cfdb4eb4a6d996">setIndices</a> (size_t row_start, size_t col_start, size_t nb_rows, size_t nb_cols)</td></tr>
<tr class="memdesc:a930c7a6375fdf65ff8cfdb4eb4a6d996 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the indices for the points laying within an interest region of the point cloud.  <a href="classpcl_1_1_p_c_l_base.html#a930c7a6375fdf65ff8cfdb4eb4a6d996">更多...</a><br /></td></tr>
<tr class="separator:a930c7a6375fdf65ff8cfdb4eb4a6d996 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a058753dd4de73d3d0062fe2e452fba3c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="a058753dd4de73d3d0062fe2e452fba3c"></a>
IndicesPtr const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a058753dd4de73d3d0062fe2e452fba3c">getIndices</a> ()</td></tr>
<tr class="memdesc:a058753dd4de73d3d0062fe2e452fba3c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to the vector of indices used. <br /></td></tr>
<tr class="separator:a058753dd4de73d3d0062fe2e452fba3c inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acae187b37230758959572ceb1e6e2045 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="acae187b37230758959572ceb1e6e2045"></a>
IndicesConstPtr const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#acae187b37230758959572ceb1e6e2045">getIndices</a> () const</td></tr>
<tr class="memdesc:acae187b37230758959572ceb1e6e2045 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to the vector of indices used. <br /></td></tr>
<tr class="separator:acae187b37230758959572ceb1e6e2045 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7335fedb0af0930b9d1dedcb54ba201 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#af7335fedb0af0930b9d1dedcb54ba201">operator[]</a> (size_t pos) const</td></tr>
<tr class="memdesc:af7335fedb0af0930b9d1dedcb54ba201 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Override <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a> operator[] to shorten code  <a href="classpcl_1_1_p_c_l_base.html#af7335fedb0af0930b9d1dedcb54ba201">更多...</a><br /></td></tr>
<tr class="separator:af7335fedb0af0930b9d1dedcb54ba201 inherit pub_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected 类型</h2></td></tr>
<tr class="memitem:a41fbc27fdc6760915155fd40f5b5ba44"><td class="memItemLeft" align="right" valign="top"><a id="a41fbc27fdc6760915155fd40f5b5ba44"></a>
typedef pcl::segmentation::grabcut::BoykovKolmogorov::vertex_descriptor&#160;</td><td class="memItemRight" valign="bottom"><b>vertex_descriptor</b></td></tr>
<tr class="separator:a41fbc27fdc6760915155fd40f5b5ba44"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a962d846fdca782383188ca1069c88ea0"><td class="memItemLeft" align="right" valign="top"><a id="a962d846fdca782383188ca1069c88ea0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>initCompute</b> ()</td></tr>
<tr class="separator:a962d846fdca782383188ca1069c88ea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e902baa6e465887328fe56a4079a502"><td class="memItemLeft" align="right" valign="top"><a id="a5e902baa6e465887328fe56a4079a502"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a5e902baa6e465887328fe56a4079a502">computeBetaOrganized</a> ()</td></tr>
<tr class="memdesc:a5e902baa6e465887328fe56a4079a502"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute beta from image <br /></td></tr>
<tr class="separator:a5e902baa6e465887328fe56a4079a502"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8dd0bbf952b886ff73c36057603e1fa"><td class="memItemLeft" align="right" valign="top"><a id="ab8dd0bbf952b886ff73c36057603e1fa"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#ab8dd0bbf952b886ff73c36057603e1fa">computeBetaNonOrganized</a> ()</td></tr>
<tr class="memdesc:ab8dd0bbf952b886ff73c36057603e1fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute beta from cloud <br /></td></tr>
<tr class="separator:ab8dd0bbf952b886ff73c36057603e1fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0143bf186604b4e6306a408c7c4eab78"><td class="memItemLeft" align="right" valign="top"><a id="a0143bf186604b4e6306a408c7c4eab78"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a0143bf186604b4e6306a408c7c4eab78">computeL</a> ()</td></tr>
<tr class="memdesc:a0143bf186604b4e6306a408c7c4eab78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute L parameter from given lambda <br /></td></tr>
<tr class="separator:a0143bf186604b4e6306a408c7c4eab78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73356d3827973778f897f318dba2f21a"><td class="memItemLeft" align="right" valign="top"><a id="a73356d3827973778f897f318dba2f21a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a73356d3827973778f897f318dba2f21a">computeNLinksOrganized</a> ()</td></tr>
<tr class="memdesc:a73356d3827973778f897f318dba2f21a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute <a class="el" href="structpcl_1_1_grab_cut_1_1_n_links.html">NLinks</a> from image <br /></td></tr>
<tr class="separator:a73356d3827973778f897f318dba2f21a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e4e93f4798b0b4b5d22ebeb8802c482"><td class="memItemLeft" align="right" valign="top"><a id="a1e4e93f4798b0b4b5d22ebeb8802c482"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a1e4e93f4798b0b4b5d22ebeb8802c482">computeNLinksNonOrganized</a> ()</td></tr>
<tr class="memdesc:a1e4e93f4798b0b4b5d22ebeb8802c482"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute <a class="el" href="structpcl_1_1_grab_cut_1_1_n_links.html">NLinks</a> from cloud <br /></td></tr>
<tr class="separator:a1e4e93f4798b0b4b5d22ebeb8802c482"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b5f5d6c6eba664c8b9802d232a1222e"><td class="memItemLeft" align="right" valign="top"><a id="a2b5f5d6c6eba664c8b9802d232a1222e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a2b5f5d6c6eba664c8b9802d232a1222e">setTrimap</a> (const PointIndicesConstPtr &amp;indices, segmentation::grabcut::TrimapValue t)</td></tr>
<tr class="memdesc:a2b5f5d6c6eba664c8b9802d232a1222e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Edit Trimap <br /></td></tr>
<tr class="separator:a2b5f5d6c6eba664c8b9802d232a1222e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16b4e6571dc6cb55f83cd5253f552e5b"><td class="memItemLeft" align="right" valign="top"><a id="a16b4e6571dc6cb55f83cd5253f552e5b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>updateHardSegmentation</b> ()</td></tr>
<tr class="separator:a16b4e6571dc6cb55f83cd5253f552e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ebb51759f4e9a2c8608e817eb38bf79"><td class="memItemLeft" align="right" valign="top"><a id="a0ebb51759f4e9a2c8608e817eb38bf79"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a0ebb51759f4e9a2c8608e817eb38bf79">fitGMMs</a> ()</td></tr>
<tr class="memdesc:a0ebb51759f4e9a2c8608e817eb38bf79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fit Gaussian Multi Models <br /></td></tr>
<tr class="separator:a0ebb51759f4e9a2c8608e817eb38bf79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54c938fdaefedff69430c7cd090c7337"><td class="memItemLeft" align="right" valign="top"><a id="a54c938fdaefedff69430c7cd090c7337"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a54c938fdaefedff69430c7cd090c7337">initGraph</a> ()</td></tr>
<tr class="memdesc:a54c938fdaefedff69430c7cd090c7337"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build the graph for GraphCut <br /></td></tr>
<tr class="separator:a54c938fdaefedff69430c7cd090c7337"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a075dc111ee224e7fe0bb4b39c1a49606"><td class="memItemLeft" align="right" valign="top"><a id="a075dc111ee224e7fe0bb4b39c1a49606"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a075dc111ee224e7fe0bb4b39c1a49606">addEdge</a> (vertex_descriptor v1, vertex_descriptor v2, float capacity, float rev_capacity)</td></tr>
<tr class="memdesc:a075dc111ee224e7fe0bb4b39c1a49606"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an edge to the graph, graph must be oriented so we add the edge and its reverse <br /></td></tr>
<tr class="separator:a075dc111ee224e7fe0bb4b39c1a49606"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8991a8e3e62e810cc810b4e8e1cd5d26"><td class="memItemLeft" align="right" valign="top"><a id="a8991a8e3e62e810cc810b4e8e1cd5d26"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a8991a8e3e62e810cc810b4e8e1cd5d26">setTerminalWeights</a> (vertex_descriptor v, float source_capacity, float sink_capacity)</td></tr>
<tr class="memdesc:a8991a8e3e62e810cc810b4e8e1cd5d26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the weights of SOURCE --&gt; v and v --&gt; SINK <br /></td></tr>
<tr class="separator:a8991a8e3e62e810cc810b4e8e1cd5d26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a760ae840a38601e8b4e776a19343b24f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a760ae840a38601e8b4e776a19343b24f">isSource</a> (vertex_descriptor v)</td></tr>
<tr class="separator:a760ae840a38601e8b4e776a19343b24f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classpcl_1_1_p_c_l_base"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classpcl_1_1_p_c_l_base')"><img src="closed.png" alt="-"/>&#160;Protected 成员函数 继承自 <a class="el" href="classpcl_1_1_p_c_l_base.html">pcl::PCLBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:acceb20854934f4cf77e266eb5a44d4f0 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#acceb20854934f4cf77e266eb5a44d4f0">initCompute</a> ()</td></tr>
<tr class="memdesc:acceb20854934f4cf77e266eb5a44d4f0 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method should get called before starting the actual computation.  <a href="classpcl_1_1_p_c_l_base.html#acceb20854934f4cf77e266eb5a44d4f0">更多...</a><br /></td></tr>
<tr class="separator:acceb20854934f4cf77e266eb5a44d4f0 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc426c4eebb94b7734d4fa556bff1420 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="afc426c4eebb94b7734d4fa556bff1420"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#afc426c4eebb94b7734d4fa556bff1420">deinitCompute</a> ()</td></tr>
<tr class="memdesc:afc426c4eebb94b7734d4fa556bff1420 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method should get called after finishing the actual computation. <br /></td></tr>
<tr class="separator:afc426c4eebb94b7734d4fa556bff1420 inherit pro_methods_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a4a10a01757e8a0a6eed1d757c6de93f2"><td class="memItemLeft" align="right" valign="top"><a id="a4a10a01757e8a0a6eed1d757c6de93f2"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a4a10a01757e8a0a6eed1d757c6de93f2">width_</a></td></tr>
<tr class="memdesc:a4a10a01757e8a0a6eed1d757c6de93f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">image width <br /></td></tr>
<tr class="separator:a4a10a01757e8a0a6eed1d757c6de93f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2b5c68eb7b9b49a0fb555362ec84139"><td class="memItemLeft" align="right" valign="top"><a id="af2b5c68eb7b9b49a0fb555362ec84139"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#af2b5c68eb7b9b49a0fb555362ec84139">height_</a></td></tr>
<tr class="memdesc:af2b5c68eb7b9b49a0fb555362ec84139"><td class="mdescLeft">&#160;</td><td class="mdescRight">image height <br /></td></tr>
<tr class="separator:af2b5c68eb7b9b49a0fb555362ec84139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a896c02aaa5cf6cdafa1c1c56c723a686"><td class="memItemLeft" align="right" valign="top"><a id="a896c02aaa5cf6cdafa1c1c56c723a686"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a896c02aaa5cf6cdafa1c1c56c723a686">K_</a></td></tr>
<tr class="memdesc:a896c02aaa5cf6cdafa1c1c56c723a686"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of GMM components <br /></td></tr>
<tr class="separator:a896c02aaa5cf6cdafa1c1c56c723a686"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b8b46ac34c420b3a55a4a3dba07177b"><td class="memItemLeft" align="right" valign="top"><a id="a6b8b46ac34c420b3a55a4a3dba07177b"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a6b8b46ac34c420b3a55a4a3dba07177b">lambda_</a></td></tr>
<tr class="memdesc:a6b8b46ac34c420b3a55a4a3dba07177b"><td class="mdescLeft">&#160;</td><td class="mdescRight">lambda = 50. This value was suggested the <a class="el" href="classpcl_1_1_grab_cut.html" title="Implementation of the GrabCut segmentation in &quot;GrabCut — Interactive Foreground Extraction using Iter...">GrabCut</a> paper. <br /></td></tr>
<tr class="separator:a6b8b46ac34c420b3a55a4a3dba07177b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19ba69378ddcebd8138dbe34a0655bb"><td class="memItemLeft" align="right" valign="top"><a id="aa19ba69378ddcebd8138dbe34a0655bb"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#aa19ba69378ddcebd8138dbe34a0655bb">beta_</a></td></tr>
<tr class="memdesc:aa19ba69378ddcebd8138dbe34a0655bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">beta = 1/2 * average of the squared color distances between all pairs of 8-neighboring pixels. <br /></td></tr>
<tr class="separator:aa19ba69378ddcebd8138dbe34a0655bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6746153bec64685615ea3d8c456c994c"><td class="memItemLeft" align="right" valign="top"><a id="a6746153bec64685615ea3d8c456c994c"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a6746153bec64685615ea3d8c456c994c">L_</a></td></tr>
<tr class="memdesc:a6746153bec64685615ea3d8c456c994c"><td class="mdescLeft">&#160;</td><td class="mdescRight">L = a large value to force a pixel to be foreground or background <br /></td></tr>
<tr class="separator:a6746153bec64685615ea3d8c456c994c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e3eb57a161bc87760431778147c2a28"><td class="memItemLeft" align="right" valign="top"><a id="a9e3eb57a161bc87760431778147c2a28"></a>
KdTreePtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a9e3eb57a161bc87760431778147c2a28">tree_</a></td></tr>
<tr class="memdesc:a9e3eb57a161bc87760431778147c2a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the spatial search object. <br /></td></tr>
<tr class="separator:a9e3eb57a161bc87760431778147c2a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5749bc1c92334b0a4d6d9195e780dc4"><td class="memItemLeft" align="right" valign="top"><a id="aa5749bc1c92334b0a4d6d9195e780dc4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#aa5749bc1c92334b0a4d6d9195e780dc4">nb_neighbours_</a></td></tr>
<tr class="memdesc:aa5749bc1c92334b0a4d6d9195e780dc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of neighbours <br /></td></tr>
<tr class="separator:aa5749bc1c92334b0a4d6d9195e780dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4a4f8bc41f470ace77342d4d8cd983"><td class="memItemLeft" align="right" valign="top"><a id="aca4a4f8bc41f470ace77342d4d8cd983"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#aca4a4f8bc41f470ace77342d4d8cd983">initialized_</a></td></tr>
<tr class="memdesc:aca4a4f8bc41f470ace77342d4d8cd983"><td class="mdescLeft">&#160;</td><td class="mdescRight">is segmentation initialized <br /></td></tr>
<tr class="separator:aca4a4f8bc41f470ace77342d4d8cd983"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a876cc1b19bc0c4a656387c1cceac4c95"><td class="memItemLeft" align="right" valign="top"><a id="a876cc1b19bc0c4a656387c1cceac4c95"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_grab_cut_1_1_n_links.html">NLinks</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a876cc1b19bc0c4a656387c1cceac4c95">n_links_</a></td></tr>
<tr class="memdesc:a876cc1b19bc0c4a656387c1cceac4c95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Precomputed N-link weights <br /></td></tr>
<tr class="separator:a876cc1b19bc0c4a656387c1cceac4c95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9547c0ce3252dfa61bd5f80e9c491146"><td class="memItemLeft" align="right" valign="top"><a id="a9547c0ce3252dfa61bd5f80e9c491146"></a>
segmentation::grabcut::Image::Ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a9547c0ce3252dfa61bd5f80e9c491146">image_</a></td></tr>
<tr class="memdesc:a9547c0ce3252dfa61bd5f80e9c491146"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converted input <br /></td></tr>
<tr class="separator:a9547c0ce3252dfa61bd5f80e9c491146"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af370e79cd49a7a66713428375a3a43ef"><td class="memItemLeft" align="right" valign="top"><a id="af370e79cd49a7a66713428375a3a43ef"></a>
std::vector&lt; segmentation::grabcut::TrimapValue &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>trimap_</b></td></tr>
<tr class="separator:af370e79cd49a7a66713428375a3a43ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c2d1b392e39d0df1fb439860ab9bcb4"><td class="memItemLeft" align="right" valign="top"><a id="a3c2d1b392e39d0df1fb439860ab9bcb4"></a>
std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>GMM_component_</b></td></tr>
<tr class="separator:a3c2d1b392e39d0df1fb439860ab9bcb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72bf49763b4a822ed0faedba3f739ee1"><td class="memItemLeft" align="right" valign="top"><a id="a72bf49763b4a822ed0faedba3f739ee1"></a>
std::vector&lt; segmentation::grabcut::SegmentationValue &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>hard_segmentation_</b></td></tr>
<tr class="separator:a72bf49763b4a822ed0faedba3f739ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b357a280d0f93b7a2a8d6945ba7f6b1"><td class="memItemLeft" align="right" valign="top"><a id="a0b357a280d0f93b7a2a8d6945ba7f6b1"></a>
std::vector&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>soft_segmentation_</b></td></tr>
<tr class="separator:a0b357a280d0f93b7a2a8d6945ba7f6b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c9a8a0be90421db7e0e13217e439e8e"><td class="memItemLeft" align="right" valign="top"><a id="a5c9a8a0be90421db7e0e13217e439e8e"></a>
<a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">segmentation::grabcut::GMM</a>&#160;</td><td class="memItemRight" valign="bottom"><b>background_GMM_</b></td></tr>
<tr class="separator:a5c9a8a0be90421db7e0e13217e439e8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a9abbb45b7af30b44a3d5fb1daddec5"><td class="memItemLeft" align="right" valign="top"><a id="a8a9abbb45b7af30b44a3d5fb1daddec5"></a>
<a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_g_m_m.html">segmentation::grabcut::GMM</a>&#160;</td><td class="memItemRight" valign="bottom"><b>foreground_GMM_</b></td></tr>
<tr class="separator:a8a9abbb45b7af30b44a3d5fb1daddec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a343d48050e0d6149e8d47efd9cd6c1f8"><td class="memItemLeft" align="right" valign="top"><a id="a343d48050e0d6149e8d47efd9cd6c1f8"></a>
<a class="el" href="classpcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov.html">pcl::segmentation::grabcut::BoykovKolmogorov</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#a343d48050e0d6149e8d47efd9cd6c1f8">graph_</a></td></tr>
<tr class="memdesc:a343d48050e0d6149e8d47efd9cd6c1f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Graph for Graphcut <br /></td></tr>
<tr class="separator:a343d48050e0d6149e8d47efd9cd6c1f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac39b46cfa40fab142539e5f41383c1f"><td class="memItemLeft" align="right" valign="top"><a id="aac39b46cfa40fab142539e5f41383c1f"></a>
std::vector&lt; vertex_descriptor &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_grab_cut.html#aac39b46cfa40fab142539e5f41383c1f">graph_nodes_</a></td></tr>
<tr class="memdesc:aac39b46cfa40fab142539e5f41383c1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Graph nodes <br /></td></tr>
<tr class="separator:aac39b46cfa40fab142539e5f41383c1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1_p_c_l_base"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1_p_c_l_base')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1_p_c_l_base.html">pcl::PCLBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a09c70d8e06e3fb4f07903fe6f8d67869 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="a09c70d8e06e3fb4f07903fe6f8d67869"></a>
PointCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#a09c70d8e06e3fb4f07903fe6f8d67869">input_</a></td></tr>
<tr class="memdesc:a09c70d8e06e3fb4f07903fe6f8d67869 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The input point cloud dataset. <br /></td></tr>
<tr class="separator:a09c70d8e06e3fb4f07903fe6f8d67869 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaee847c8a517ebf365bad2cb182a6626 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="aaee847c8a517ebf365bad2cb182a6626"></a>
IndicesPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a></td></tr>
<tr class="memdesc:aaee847c8a517ebf365bad2cb182a6626 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to the vector of point indices to use. <br /></td></tr>
<tr class="separator:aaee847c8a517ebf365bad2cb182a6626 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada1eadb824d34ca9206a86343d9760bb inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="ada1eadb824d34ca9206a86343d9760bb"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#ada1eadb824d34ca9206a86343d9760bb">use_indices_</a></td></tr>
<tr class="memdesc:ada1eadb824d34ca9206a86343d9760bb inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to true if point indices are used. <br /></td></tr>
<tr class="separator:ada1eadb824d34ca9206a86343d9760bb inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adadb0299f144528020ed558af6879662 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memItemLeft" align="right" valign="top"><a id="adadb0299f144528020ed558af6879662"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_p_c_l_base.html#adadb0299f144528020ed558af6879662">fake_indices_</a></td></tr>
<tr class="memdesc:adadb0299f144528020ed558af6879662 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">If no set of indices are given, we construct a set of fake indices that mimic the input <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a>. <br /></td></tr>
<tr class="separator:adadb0299f144528020ed558af6879662 inherit pro_attribs_classpcl_1_1_p_c_l_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT&gt;<br />
class pcl::GrabCut&lt; PointT &gt;</h3>

<p>Implementation of the <a class="el" href="classpcl_1_1_grab_cut.html" title="Implementation of the GrabCut segmentation in &quot;GrabCut — Interactive Foreground Extraction using Iter...">GrabCut</a> segmentation in "GrabCut — Interactive Foreground Extraction using Iterated Graph Cuts" by Carsten Rother, Vladimir Kolmogorov and Andrew Blake. </p>
<dl class="section author"><dt>作者</dt><dd>Justin Talbot, <a href="#" onclick="location.href='mai'+'lto:'+'jta'+'lb'+'ot@'+'st'+'anf'+'or'+'d.e'+'du'; return false;">jtalb<span style="display: none;">.nosp@m.</span>ot@s<span style="display: none;">.nosp@m.</span>tanfo<span style="display: none;">.nosp@m.</span>rd.e<span style="display: none;">.nosp@m.</span>du</a> placed in Public Domain, 2010 </dd>
<dd>
Nizar Sallem port to PCL and adaptation of original code. </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a540af5196a39ae6b10d2caa3b3856bbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a540af5196a39ae6b10d2caa3b3856bbe">&#9670;&nbsp;</a></span>extract()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::extract </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="structpcl_1_1_point_indices.html">pcl::PointIndices</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>clusters</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This method launches the segmentation algorithm and returns the clusters that were obtained during the segmentation. The indices of points belonging to the object will be stored in the cluster with index 1, other indices will be stored in the cluster with index 0. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">clusters</td><td>clusters that were obtained. Each cluster is an array of point indices. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;{</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;  <span class="keyword">using namespace </span>pcl::segmentation::grabcut;</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;  clusters.clear ();</div>
<div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;  clusters.resize (2);</div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;  clusters[0].indices.reserve (<a class="code" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a>-&gt;size ());</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;  clusters[1].indices.reserve (<a class="code" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a>-&gt;size ());</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;  <a class="code" href="classpcl_1_1_grab_cut.html#a2ab12ae233f94275e090b33bb87e7d8b">refine</a> ();</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;  assert (hard_segmentation_.size () == <a class="code" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a>-&gt;size ());</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;  <span class="keyword">const</span> <span class="keywordtype">int</span> indices_size = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span> (<a class="code" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a>-&gt;size ());</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; indices_size; ++i)</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;    <span class="keywordflow">if</span> (hard_segmentation_[i] == SegmentationForeground)</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;      clusters[1].indices.push_back (i);</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;      clusters[0].indices.push_back (i);</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a2ab12ae233f94275e090b33bb87e7d8b"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a2ab12ae233f94275e090b33bb87e7d8b">pcl::GrabCut::refine</a></div><div class="ttdeci">virtual void refine()</div><div class="ttdoc">Run Grabcut refinement on the hard segmentation</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.hpp:205</div></div>
<div class="ttc" id="aclasspcl_1_1_p_c_l_base_html_aaee847c8a517ebf365bad2cb182a6626"><div class="ttname"><a href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">pcl::PCLBase::indices_</a></div><div class="ttdeci">IndicesPtr indices_</div><div class="ttdoc">A pointer to the vector of point indices to use.</div><div class="ttdef"><b>Definition:</b> pcl_base.h:153</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a28c87a88fc86e84ef54f91072a823808"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28c87a88fc86e84ef54f91072a823808">&#9670;&nbsp;</a></span>getK()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::getK </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the number of components in the GMM </dd></dl>
<div class="fragment"><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_grab_cut.html#a896c02aaa5cf6cdafa1c1c56c723a686">K_</a>); }</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a896c02aaa5cf6cdafa1c1c56c723a686"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a896c02aaa5cf6cdafa1c1c56c723a686">pcl::GrabCut::K_</a></div><div class="ttdeci">uint32_t K_</div><div class="ttdoc">Number of GMM components</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:450</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="acfd10ddb9bb658aac91191b232efdd81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acfd10ddb9bb658aac91191b232efdd81">&#9670;&nbsp;</a></span>getLambda()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::getLambda </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>lambda </dd></dl>
<div class="fragment"><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_grab_cut.html#a6b8b46ac34c420b3a55a4a3dba07177b">lambda_</a>); }</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a6b8b46ac34c420b3a55a4a3dba07177b"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a6b8b46ac34c420b3a55a4a3dba07177b">pcl::GrabCut::lambda_</a></div><div class="ttdeci">float lambda_</div><div class="ttdoc">lambda = 50. This value was suggested the GrabCut paper.</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:452</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a760ae840a38601e8b4e776a19343b24f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a760ae840a38601e8b4e776a19343b24f">&#9670;&nbsp;</a></span>isSource()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::isSource </td>
          <td>(</td>
          <td class="paramtype">vertex_descriptor&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>true if v is in source tree </dd></dl>
<div class="fragment"><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;{ <span class="keywordflow">return</span> (<a class="code" href="classpcl_1_1_grab_cut.html#a343d48050e0d6149e8d47efd9cd6c1f8">graph_</a>.<a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov.html#a06dfdb9ddf8f184ded86fb58a3dbd445">inSourceTree</a> (v)); }</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a343d48050e0d6149e8d47efd9cd6c1f8"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a343d48050e0d6149e8d47efd9cd6c1f8">pcl::GrabCut::graph_</a></div><div class="ttdeci">pcl::segmentation::grabcut::BoykovKolmogorov graph_</div><div class="ttdoc">Graph for Graphcut</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:475</div></div>
<div class="ttc" id="aclasspcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov_html_a06dfdb9ddf8f184ded86fb58a3dbd445"><div class="ttname"><a href="classpcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov.html#a06dfdb9ddf8f184ded86fb58a3dbd445">pcl::segmentation::grabcut::BoykovKolmogorov::inSourceTree</a></div><div class="ttdeci">bool inSourceTree(int u) const</div><div class="ttdoc">return true if u is in the s-set after calling solve.</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:101</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a94cd3a0257244c06f4aa6d6d3d7bf8b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94cd3a0257244c06f4aa6d6d3d7bf8b5">&#9670;&nbsp;</a></span>refineOnce()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::refineOnce</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>返回</dt><dd>the number of pixels that have changed from foreground to background or vice versa </dd></dl>
<div class="fragment"><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;{</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;  <span class="comment">// Steps 4 and 5: Learn new GMMs from current segmentation</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  learnGMMs (*<a class="code" href="classpcl_1_1_grab_cut.html#a9547c0ce3252dfa61bd5f80e9c491146">image_</a>, *<a class="code" href="classpcl_1_1_p_c_l_base.html#aaee847c8a517ebf365bad2cb182a6626">indices_</a>, hard_segmentation_, GMM_component_, background_GMM_, foreground_GMM_);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;  <span class="comment">// Step 6: Run GraphCut and update segmentation</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;  <a class="code" href="classpcl_1_1_grab_cut.html#a54c938fdaefedff69430c7cd090c7337">initGraph</a> ();</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  <span class="keywordtype">float</span> flow = <a class="code" href="classpcl_1_1_grab_cut.html#a343d48050e0d6149e8d47efd9cd6c1f8">graph_</a>.<a class="code" href="classpcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov.html#aa934e5f0053cce97093f5dd97f2a1980">solve</a> ();</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160; </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;  <span class="keywordtype">int</span> changed = updateHardSegmentation ();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;  PCL_INFO (<span class="stringliteral">&quot;%d pixels changed segmentation (max flow = %f)\n&quot;</span>, changed, flow);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; </div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;  <span class="keywordflow">return</span> (changed);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a54c938fdaefedff69430c7cd090c7337"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a54c938fdaefedff69430c7cd090c7337">pcl::GrabCut::initGraph</a></div><div class="ttdeci">void initGraph()</div><div class="ttdoc">Build the graph for GraphCut</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.hpp:263</div></div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a9547c0ce3252dfa61bd5f80e9c491146"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a9547c0ce3252dfa61bd5f80e9c491146">pcl::GrabCut::image_</a></div><div class="ttdeci">segmentation::grabcut::Image::Ptr image_</div><div class="ttdoc">Converted input</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:466</div></div>
<div class="ttc" id="aclasspcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov_html_aa934e5f0053cce97093f5dd97f2a1980"><div class="ttname"><a href="classpcl_1_1segmentation_1_1grabcut_1_1_boykov_kolmogorov.html#aa934e5f0053cce97093f5dd97f2a1980">pcl::segmentation::grabcut::BoykovKolmogorov::solve</a></div><div class="ttdeci">double solve()</div><div class="ttdoc">solve the max-flow problem and return the flow</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a1660eb464bfd7944de8661f4f7e90ecb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1660eb464bfd7944de8661f4f7e90ecb">&#9670;&nbsp;</a></span>setInputCloud()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setInputCloud </td>
          <td>(</td>
          <td class="paramtype">const PointCloudConstPtr &amp;&#160;</td>
          <td class="paramname"><em>cloud</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provide a pointer to the input dataset </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">cloud</td><td>the const boost shared pointer to a <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a> message </td></tr>
  </table>
  </dd>
</dl>

<p>重载 <a class="el" href="classpcl_1_1_p_c_l_base.html#a1952d7101f3942bac3b69ed55c1ca7ea">pcl::PCLBase&lt; PointT &gt;</a> .</p>
<div class="fragment"><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;{</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;  <a class="code" href="classpcl_1_1_p_c_l_base.html#a09c70d8e06e3fb4f07903fe6f8d67869">input_</a> = cloud;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_p_c_l_base_html_a09c70d8e06e3fb4f07903fe6f8d67869"><div class="ttname"><a href="classpcl_1_1_p_c_l_base.html#a09c70d8e06e3fb4f07903fe6f8d67869">pcl::PCLBase::input_</a></div><div class="ttdeci">PointCloudConstPtr input_</div><div class="ttdoc">The input point cloud dataset.</div><div class="ttdef"><b>Definition:</b> pcl_base.h:150</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a3d7aa7a82cd3e53e724a1c6841518ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d7aa7a82cd3e53e724a1c6841518ccf">&#9670;&nbsp;</a></span>setK()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setK </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>K</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set K parameter to user given value. Suggested value by the authors is 5 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">K</td><td>the number of components used in GMM </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;{ <a class="code" href="classpcl_1_1_grab_cut.html#a896c02aaa5cf6cdafa1c1c56c723a686">K_</a> = K; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a0c1c53a761cbdcb78ea945399799822e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c1c53a761cbdcb78ea945399799822e">&#9670;&nbsp;</a></span>setLambda()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setLambda </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>lambda</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set lambda parameter to user given value. Suggested value by the authors is 50 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">lambda</td><td></td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;{ <a class="code" href="classpcl_1_1_grab_cut.html#a6b8b46ac34c420b3a55a4a3dba07177b">lambda_</a> = lambda; }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a4f685d2d7d97c6313e2010649705dcbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f685d2d7d97c6313e2010649705dcbc">&#9670;&nbsp;</a></span>setNumberOfNeighbours()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setNumberOfNeighbours </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nb_neighbours</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allows to set the number of neighbours to find. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nb_neighbours</td><td>new number of neighbours </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;{ <a class="code" href="classpcl_1_1_grab_cut.html#aa5749bc1c92334b0a4d6d9195e780dc4">nb_neighbours_</a> = nb_neighbours; }</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_aa5749bc1c92334b0a4d6d9195e780dc4"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#aa5749bc1c92334b0a4d6d9195e780dc4">pcl::GrabCut::nb_neighbours_</a></div><div class="ttdeci">int nb_neighbours_</div><div class="ttdoc">Number of neighbours</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:460</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a28c5aed9323d69b8324c63413f354b0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28c5aed9323d69b8324c63413f354b0f">&#9670;&nbsp;</a></span>setSearchMethod()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1_grab_cut.html">pcl::GrabCut</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setSearchMethod </td>
          <td>(</td>
          <td class="paramtype">const KdTreePtr &amp;&#160;</td>
          <td class="paramname"><em>tree</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provide a pointer to the search object. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tree</td><td>a pointer to the spatial search object. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;{ <a class="code" href="classpcl_1_1_grab_cut.html#a9e3eb57a161bc87760431778147c2a28">tree_</a> = tree; }</div>
<div class="ttc" id="aclasspcl_1_1_grab_cut_html_a9e3eb57a161bc87760431778147c2a28"><div class="ttname"><a href="classpcl_1_1_grab_cut.html#a9e3eb57a161bc87760431778147c2a28">pcl::GrabCut::tree_</a></div><div class="ttdeci">KdTreePtr tree_</div><div class="ttdoc">Pointer to the spatial search object.</div><div class="ttdef"><b>Definition:</b> grabcut_segmentation.h:458</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>segmentation/include/pcl/segmentation/<a class="el" href="grabcut__segmentation_8h_source.html">grabcut_segmentation.h</a></li>
<li>segmentation/include/pcl/segmentation/impl/<a class="el" href="grabcut__segmentation_8hpp_source.html">grabcut_segmentation.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_grab_cut.html">GrabCut</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
